package com.zhentao.model.common.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName app_user
 */
@TableName(value ="app_user")
@Data
public class AppUser implements Serializable {
    /**
     * 用户主键
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 验证码
     */
    @TableField(value = "security")
    private String security;

    /**
     * 个人资料表外键
     */
    @TableField(value = "user_data_id")
    private Integer userDataId;

    /**
     * 会员表外键
     */
    @TableField(value = "vip_id")
    private Integer vipId;

    /**
     * 身份证认证表外键
     */
    @TableField(value = "authentication_id")
    private Integer authenticationId;

    /**
     * 房产认证表外键
     */
    @TableField(value = "house_id")
    private Integer houseId;

    /**
     * 账号状态（0禁用 1启用）
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最近登录日期
     */
    @TableField(value = "new_login_time")
    private Date newLoginTime;

    /**
     * 用户的个人资料
     */
    @TableField(exist = false)
    private AppUserData appUserData;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}